/* *
*  购物车界面
*/

/* 装logo和进度的盒子 */
#logo_and_progress{
    width: 960px;
    height: 120px;
    display: flex;
    align-items: center;
    margin: 10px auto;
    margin-bottom: 0;
}
/* logo */
#logo_and_progress > a > img{
    height: 120px;
    margin-right: 50px;
}
/* 当前进度 */
#logo_and_progress > span{
    width: 200px;
    color: black;
    font-weight: 600;
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 10px 15px;
    background-color:  rgba(0, 0, 0, 0.1);
    
}
/* 设置第二个和第三个span的before */
#logo_and_progress > span:nth-child(3):before,#logo_and_progress > span:last-child:before{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 20px solid  rgba(0, 0, 0, 0.0001);
    border-left-color: white;
}
/* 设置第一个和第二个span的after */
#logo_and_progress > span:nth-child(2):after,#logo_and_progress > span:nth-child(3):after{
    content: '';
    display: block;
    position: absolute;
    top:0;
    right: -20px;
    width: 0;
    height: 0;
    border: 21px solid white;
    border-left-color: rgba(0, 0, 0, 0.0001);
}
/* 单独设置第三个span */
#logo_and_progress > span:last-child{
    border-radius: 0 25px 25px 0;
}
/* 第一条进度 */
#logo_and_progress > span:nth-child(2){
    border-radius: 25px 0 0 25px;
    
}
/* 设置加了active属性的进度条 */
#logo_and_progress > span.active{
    color: white;
    background-color: red;
}
/* 进度和购物车内容的分割线 */
#line{
    width: 100%;
    height: 3px;
    background-color: black;
}
/* 购物车布局 */
#shop_content{
    width: 960px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}
/* 购物地址 */
#shop_adress{
   width: 150px;
    font-size: 14px;
    color:  rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin: 20px 0;
    background: url('../../images/car.png') no-repeat;
    background-size: 25px 25px;
    background-position: 8px -3px;
    padding-left: 40px;
}
#shop_adress > span{
    border-left: 1px solid rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.5);
    padding: 0 5px;
}
/* 购物车里面的订单 */
#shop_cart{
    width: 100%;
    
}
/* 标题 */
#shop_cart > ul{
    display: flex;
    justify-content: space-between;
    align-content: center;
}
#shop_cart > ul > li{
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 10px;
}
#shop_cart > ul > li:first-child > input{
    margin-right: 5px;
}
#shop_cart > ul > li:nth-child(2){
    margin-left: 40px;
    margin-right: 200px;
}
/* 购物车内容 */
#shop_items{
    width: 100%;
    display: flex;
    flex-wrap:wrap;
    margin-top: 10px;
    padding-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}
#shop_items > .shop_item{
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}
#shop_items > .shop_item::after{
    content: '';
    display: block;
    width: 165px;
    height: 1px;
    position: absolute;
    top: -1px;
    left: 0;
    background-color: white;
}
/* 复选框 */
#shop_items > .shop_item > input{
    display: flex;
    align-self: center;
    margin: 0 15px;
}
/* 预览图 */
#shop_items > .shop_item > img{
    width: 100px;
    height: 120px;
    margin: 0 15px;
}
/* 标题 */
#shop_items > .shop_item > a.item_title{
    color: black;
    width: 326px;
    height: 36px;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size: 14px; 
}
#shop_items > .shop_item > a.item_title:hover{
    color: red;
    text-decoration-line: underline;
}
/* 单价 */
#shop_items > .shop_item > p.item_price{
	width: 120px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 3px;
}
/* 数量 */
#shop_items > .shop_item > div.item_num{
    display: flex;
    width: 94px;
    height: 25px;
    align-items: center;
    margin-right: 45px;
}
#shop_items > .shop_item > div.item_num > a{
    display: flex;
    width: 30px;
    height: 100%;
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.55);
}
#shop_items > .shop_item > div.item_num > input.num{
    width: 30px;
    height: 100%;
    border: 0;
    text-align: center;
     border-top: 1px solid rgba(0, 0, 0, 0.5);
     border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}
.num:focus{
	outline: none;
}
/* 总价 */
#shop_items > .shop_item > p.item_new_price{
	width: 100px;
    font-size: 14px;
    margin-right: 55px;
}
/* 删除 */
#shop_items > .shop_item >  .item_to_delete{
    color: black;
    font-size: 14px;
}
#shop_items > .shop_item >  .item_to_delete:hover{
    color: red;
    text-decoration-line: underline;
}
/* 提交购物车 */
#shop_to_submit{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    bottom: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.55);
    padding: 5px 0 20px 0;
    background-color:  white;
}
/* 多选框 */
#shop_to_submit > #select_shopping_item{
    margin: 2px 5px 0 0;
}
/* 超链接 */
#shop_to_submit > a{
    display: block;
    color: black;
}
#shop_to_submit > a:nth-child(2){
    margin: 0 30px;
}
#shop_to_submit > a:nth-child(3){
    margin-right: 100px;
}
#shop_to_submit > a:hover{  
    color: red;
    text-decoration-line: underline;
    
}
/* 第四个span */
#shop_to_submit > span:nth-child(4){
    margin-right: 180px;
}
#shop_to_submit > span:nth-child(4) > span#select_num{
    color: red;
}
#shop_to_submit > span:nth-child(5) {
	width: 110px;
    color: red;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    margin: -3px 7px 0 5px;
}
#shop_to_submit > span:nth-child(5) > em#submit_price{
    width: 70px;
    font-style: normal;
    display: flex;
}
/* 提交 */
#submit{
    width: 116px;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    font-weight: 600;
    font-size: 20px;
    border: 0;
}
#submit:focus{
	outline: none;
}
/* 提交订单 */
#check_shop{
    width: 960px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}
/* 地址 */
#check_shop > #check_adress{
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border-bottom: 1px solid  rgba(0, 0, 0, 0.55);
}
/* 地址标题 */
#check_shop > #check_adress > p:first-child{
    font-size: 20px;
    margin: 5px 0;
    font-weight: 800;  
}
/* 地址内容 */
#check_shop > #check_adress > div{
    width: 200px;
    height: 100px;
    font-size: 14px;
    padding: 5px 15px;
    border: 2px solid red;
}
/* 名字和电话 */
#check_shop > #check_adress > div > p{
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-weight: 800;  
    border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}
/* 地址 */
#check_shop > #check_adress > div > span{
    display: flex;
    padding: 5px 0;
}
/* 检查订单 */
#check_order{
    margin: 5px 0;
}
#check_shop > #check_order > table{
    width: 600px;
    border: 1px solid rgba(0, 0, 0, 0.55);
}
/* 标题 */
#check_shop > #check_order > p{
    font-size: 20px;
    margin: 5px 0;
    font-weight: 800;  
}
/* 订单 */
.shopping_order > td > img{
    width: 70px;
    height: 70px;
}
#check_order > table > tbody > tr > td{
    font-size: 14px;
    vertical-align: top;
}
#check_order > table > tbody > tr > td:nth-child(2){
    display: flex;
    width: 200px;
}
/* 支付方式 */
#check_shop > #pay{
    display: flex;
    flex-direction: column;
}
/* 标题 */
#pay > p{
    font-size: 20px;
    margin: 5px 0;
    font-weight: 800;  
    margin-bottom: 10px;
}
/* 可选择的支付方式 */
#pay > ul,#pay > ul > li{
    display: flex;
    width: 100%;
}
#pay > ul > li >a{
    width: 25%;
    display: flex;
    color: white;
    justify-content: center;
    align-content: center;
    background-color: red;
    padding: 5px;
    border-radius: 5px;
}
/* 发票 */
#invoice{
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}
/* 标题 */
#invoice > p{
    font-size: 20px;
    margin: 5px 0;
    font-weight: 800;  
    margin-bottom: 10px;
}
/* 复选框 */
#invoice > input{
    pointer-events: none;
    margin-right: 5px;
}
/* 新的提交按钮 */
#newsubmit{
    width: 960px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-content: center;
    margin-top: 20px;
    position: fixed;
    bottom: 0;
    background-color: rgba(220, 220, 220);
    
}
/* 左边的地址 */
#newsubmit > div:first-child{
    display: flex;
}
#newsubmit > div:first-child > p:first-child{
    margin-left: 15px;
}
#newsubmit > div:first-child > p:last-child{
    color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
#newsubmit > div:first-child > p:last-child > span:first-child{
    margin-bottom: 5px;
}
#newsubmit > div:first-child > p:last-child > span > em{
    font-style: normal;
}
/* 右边的支付 */
#newsubmit > div:last-child{
    display: flex;
}
/* 共多少件 */
#newsubmit > div:last-child > p{
    margin-right: 50px;
}
#newsubmit > div:last-child > p > span{
    color: red;
}
/* 运费 */
#newsubmit > div:last-child > div{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 250px;
}
#newsubmit > div:last-child > div > span:first-child{
    font-weight: 600;
}
#newsubmit > div:last-child > div > span:first-child > span:first-child{
    font-size: 20px;
    color: red;
}
#newsubmit > div:last-child > div > span:first-child > span:first-child >em{
    font-style: normal;
}
/* 订单 */
#newsubmit > div:last-child > div >  span:first-child > span:last-child{
    color: rgba(0, 0, 0, 0.5);
    font-weight: 300;
    margin-top: 5px;
}
#newsubmit > div:last-child > div >  span:last-child{
    color: rgba(0, 0, 0, 0.5);
}
#newsubmit > div:last-child > div >  span:last-child >span{
    color: red;
}
/* 支付 */
#topay{
    width: 120px;
    height: 80px;
    color: white;
    background-color: red;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
}
/* 设置最后的样式*/
#backHome{
	width: 960px;
	margin: auto;
}